package study.utils;

/**
 * 时间单位转换
 * @Author 刘伟涛
 * @Date 2024/8/8 15:00
 **/
public class TimeUnitConversion {

    public static String handleDate(String time){
        switch (time) {
            case "Y":
                return "岁";
            case "M":
                return "月";
            case "D":
                return "天";
            default:
                System.out.println("未知记录类型: " + time);
        }
        return null;
    }
}
